package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 热卖套餐对象 d_package
 *
 * @author tjm
 * @date 2025-04-03
 */
public class DPackage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 套餐ID */
    private Long pid;

    /** 套餐名称（ID） */
    @Excel(name = "套餐名称", readConverterExp = "I=D")
    private Long dishesID;

    public String getDishesName() {
        return dishesName;
    }

    public void setDishesName(String dishesName) {
        this.dishesName = dishesName;
    }

    private String dishesName;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 状态（0代表在售，1代表停售） */
    @Excel(name = "状态", readConverterExp = "0=代表在售，1代表停售")
    private Long status;

    /** 月销量 */
    @Excel(name = "月销量")
    private Long sales;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 打折状态（0代表允许打折，1原价出售） */
    @Excel(name = "打折状态", readConverterExp = "0=代表允许打折，1原价出售")
    private Long discountStatus;

    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setDishesID(Long dishesID)
    {
        this.dishesID = dishesID;
    }

    public Long getDishesID()
    {
        return dishesID;
    }
    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setSales(Long sales)
    {
        this.sales = sales;
    }

    public Long getSales()
    {
        return sales;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setDiscountStatus(Long discountStatus)
    {
        this.discountStatus = discountStatus;
    }

    public Long getDiscountStatus()
    {
        return discountStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pid", getPid())
            .append("dishesID", getDishesID())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("sales", getSales())
            .append("number", getNumber())
            .append("discountStatus", getDiscountStatus())
            .toString();
    }
}
